home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / GBOXCOLR.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  47 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   GBOXCOLR.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20.  
  21. $INCLUDE "DAS-NBV1.INC"
  22. SCREEN 12
  23. CLS
  24. GraphicSETUP
  25. COLOR 7, 0
  26.  
  27. ? "┌─────────────────────────────────────────────────────────────────────────
  28. ? "│ GBoxCOLOR ( C1%, R1%, C2%, R2%, Colour? )
  29. ? "│
  30. ? "│ PURPOSE: fill a rectangular area of the screen with a solid color
  31. ? "│  PARAMS: C1% left-most column ( 0 -> 639 )
  32. ? "│          R1% top most row     ( 0 -> 479 )
  33. ? "│          C2% right most column
  34. ? "│          R2% bottom most row
  35. ? "│           C? color number     ( 0 -> 15  )
  36. ? "└─────────────────────────────────────────────────────────────────────────
  37. DELAY 1                                      '┌──────────────────────────────
  38.                                              '│
  39. FOR C? = 1 TO 15                             '│ once for each "visable" color
  40.   GBoxCOLOR C1%, 250, C1%+39, 350, C?        '│ hit it!
  41.   INCR C1%, 42                               '│ next column
  42. NEXT                                         '│
  43.                                              '│
  44. WHILE NOT INSTAT : WEND                      '│
  45. CLS                                          '│
  46. SCREEN 0                                     '└─────────────────────────────
  47.